var http = require('http');

var superagent = require('superagent');
var cheerio = require('cheerio');


superagent.get('http://www.baidu.com')
  .end(function(err, pres) {
    var $ = cheerio.load(pres.text);
    // console.log('$', $('.title-content-title').text());
    var href = $('.title-content').attr('href');
    console.log('href', href)
  })